<!-- 概况 -->

<template>
  <div class="ParkingMap-MyCount">
    <div class="flex">
      <span>总车位</span>
      <b>{{ CORE.numStr(info.all.count || 0) }}</b>
    </div>

    <div class="flex">
      <span>剩余车位</span>
    </div>

    <EasyScroll hasX>
      <div v-if="info.self">
        <div class="ellips" :title="info.self.titleName">{{ info.self.titleName }}</div>
        <b>{{ CORE.numStr(info.self.count || 0) }}</b>
      </div>

      <div v-for="(item, i) in info.countSpaceArea" :key="i">
        <div class="ellips" :title="item.titleName">{{ item.titleName }}</div>
        <b>{{ CORE.numStr(item.count || 0) }}</b>
      </div>
    </EasyScroll>
  </div>
</template>

<script>
// ============================== 导入依赖 ============================== //

import CORE from '@/CORE'

// ============================== 导出组件 ============================== //

export default {
  /**
   * 名称定义 (实际使用名称)
   */
  name: 'MyCount',

  /**
   * 混入列表 (配置选项合并)
   */
  mixins: [CORE.mixInfo('count')],
}
</script>

<style lang="scss">
@import './index.scss';
</style>
